<template>
  <a-config-provider :get-popup-container="getPopupContainer" :locale="zhCN">
    <router-view />
  </a-config-provider>
</template>

<script setup lang="ts">
import zhCN from 'ant-design-vue/es/locale/zh_CN';

const getPopupContainer = (
  el: any,
  dialogContext: { getDialogWrap: () => any },
) => {
  if (dialogContext) {
    return dialogContext.getDialogWrap();
  } else {
    return document.body;
  }
};
</script>
<style>
body #app {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
</style>
